<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    
<%@page import="csc.nndp.dao.User"%><html>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
		<link rel="stylesheet" href="http://voky.com.ua/showcase/sky-forms/examples/css/demo.css">
		<link rel="stylesheet" href="http://voky.com.ua/showcase/sky-forms/examples/css/sky-forms.css">
		<link rel="stylesheet" href="http://voky.com.ua/showcase/sky-forms/examples/css/sky-forms-purple.css">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Add User</title>
</head>
<body class="bg-purple">

		<%
		csc.nndp.dao.User userInfo = (csc.nndp.dao.User)request.getAttribute("userInfo");
if(userInfo == null){
	userInfo =  new User();
}
%>


<form action="add-user?action=confirm" method="post">
	<fieldset style="width:300px;">
		<table>
		
		
		<tr>
				<td>UserName:</td>
				<td><input type="text" name="userName" value="${userInfo.userName }"/> <span style="color: red">*</span></td>
			</tr>
			<tr>
				<td>Password:</td>
				<td><input type="text" name="password" value="${userInfo.password }"/> <span style="color: red">*</span></td>
			</tr>
			<tr>
				<td>First Name:</td>
				<td><input type="text" name="firstName" value="${userInfo.firstName }"/> <span style="color: red">*</span></td>
			</tr>
			<tr>
				<td>Last Name:</td>
				<td><input type="text" name="lastName" value="${userInfo.lastName }"/><span style="color: red">*</span></td>
			</tr>
			
			<tr>
				<td>Phone:</td>
				<td><input type="text" name="phone" value="${userInfo.phone }"/></td>
			</tr>
			<tr>
				<td>Email:</td>
				<td><input type="text" name="email" value="${userInfo.email }"/></td>
			</tr>
			<tr>
				<td>Role:</td>
				<td><input type="text" name="role" value="${userInfo.role }"/></td>
			</tr>
		
		</table>
		<br />
		<input type="submit" value="Accept" /><input type="reset" value="Cancel" onclick="window.location.href ='view-user'"/>
	</fieldset>
</form>



</body>
</html>